export const getModelBySeriesId = async (seriesid) => {
    const response = await fetch(`/api/haisuoshuju/clue/commonData/getModelBySeriesId?seriesid=${seriesid}`);
    return response.json();
}

export const commonDataBrandSeries=async () => {
    const response = await fetch(`/api/haisuoshuju/clue/commonData/brandSeries`);
    return response.json();
}

export const getTagImgBySourceAndCity = async (source, city) => {
    const response = await fetch(`/api/haisuoshuju/clue/clueUserTagAreaRelate/getTagImgBySourceAndCity?source=${source}&city=${city}`);
    return response.json();
}

export const h5Add = async (data) => {
    const response = await fetch(`/api/haisuoshuju/clue/clueRecord/h5Add`, {
        method: 'post',
        body: JSON.stringify(data),
        headers: {
            'Content-Type': 'application/json'
        },
    });
    return response.json();
}
